$(function() {

    var $wrapper = $('.wrapper');
    var newsPage ={
        _fixPage: function(){
            $('.wrapper').height($(window).height());
        },
        init: function(){
            this._fixPage();
        }
    };

    newsPage.init();

    /*var shareSDK = {

        _info : {
            shareTitle     : '',
            descContent    : '',
            shareTimeTitle : '',
            imgUrl         : __CDNPATH + '/data/share.jpg',
            lineLink       : window.location.href
        },

        _doneCbk: function() {
            nie.config.stats.url.add('1/xsd_huanzhuang_0623.html?click=share', 'xsd_huanzhuang_0623');
        },

        set: function(info) {

            var that = this;

            if (info) {
                info.shareTitle     && (this._info.shareTitle     = info.shareTitle    );
                info.descContent    && (this._info.descContent    = info.descContent   );
                info.shareTimeTitle && (this._info.shareTimeTitle = info.shareTimeTitle);
            }

            wx.ready(function() {
                wx.onMenuShareTimeline({
                    title   : that._info.shareTimeTitle,
                    link    : that._info.lineLink,
                    imgUrl  : that._info.imgUrl,
                    success : that._doneCbk
                });
                wx.onMenuShareAppMessage({
                    title   : that._info.shareTitle,
                    desc    : that._info.descContent,
                    link    : that._info.lineLink,
                    imgUrl  : that._info.imgUrl,
                    success : that._doneCbk
                });
            });

            return this;
        },

        init: function() {

            var that = this;

            document.addEventListener('YixinJSBridgeReady', function() {
                YixinJSBridge.on('menu:share:appmessage', function() {
                    YixinJSBridge.invoke('sendAppMessage', {
                      img_width  : '300',
                      img_height : '300',
                      img_url    : that._info.imgUrl,
                      link       : that._info.lineLink,
                      desc       : that._info.descContent,
                      title      : that._info.shareTitle
                    }, that._doneCbk);
                });
                YixinJSBridge.on('menu:share:timeline', function() {
                    YixinJSBridge.invoke('shareTimeline', {
                      img_width  : '300',
                      img_height : '300',
                      img_url    : that._info.imgUrl,
                      link       : that._info.lineLink,
                      desc       : that._info.shareTimeTitle,
                      title      : that._info.shareTimeTitle
                    }, that._doneCbk);
                });
            }, false);

            wx.config(wx_conf);

            this.set();

            return this;
        }
    };*/

});
